package com.qf.controller;

import com.qf.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者：冯国清
 * 项目名：com.qf.controller
 * 时间：2020/8/18 16:47
 * 描述:
 */
@RestController
public class Emailcontroller {
    @Autowired
    EmailService emailService;


    @RequestMapping("/sendMail")
    public Integer sendMail(@RequestParam("mail")String mail){
        return emailService.sendMail(mail);
    }
}
